package com.example.demo.intf;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import com.example.demo.bean.Result;
import com.example.demo.entity.UserFriend;
import com.example.demo.exception.SPIPException;

@FeignClient(value = "user-admin")
public interface UserInterface {

	@PostMapping(value = "/user/addFriend")
	public Result addFriend(@RequestBody UserFriend userFriend) throws SPIPException;
}
